"""
认证相关的请求/响应数据模型
"""

from pydantic import BaseModel, Field


class Token(BaseModel):
    """登录成功返回的Token结构"""
    access_token: str
    token_type: str = "bearer"


class TokenOut(BaseModel):
    """登录成功返回的 Token 结构"""
    access_token: str = Field(..., description="JWT 访问令牌")
    token_type: str = Field("bearer", description="固定为 bearer")
